home *** CD-ROM | disk | FTP | other *** search
- Test1a9z - Version 0.03α Copyright (c) 1992 by Gerry Lowry
-
- Function: To test keyboard input and to set the DOS ERRORLEVEL
-
- Syntax: Test1a9z [?|-?|/?|h|-h|/h|help|-help|/help]
- Test1a9z [b|-b|/b|beep|-beep|/beep]
- [t[:nn]|-t[:nn]|/t[:nn]
- |timeout[:nn]|-timeout[:nn]|/timeout[:nn]]
- where "nn" is an integer from 1 to 99
-
- Examples: Test1a9z
- Test1a9z -HELP
- Test1a9z /?
- Test1a9z h
- Test1a9z BEEP
- Test1a9z -timeout
- {Note: Default time out is 10 seconds.}
- Test1a9z /TIMEOUT:5
- Test1a9z -b -t:60
-
- Results: if no parameter is given, then Test1a9z waits for keyboard
- input. Subject to the DOS key pressed, Test1a9z sets the
- DOS ERRORLEVEL as follows:
- 1 for '1', 2 for '2', 3 for '3', ... , 8 for '8', 9 for '9'
- 101 for 'a', 102 for 'b', 103 for 'c', ... , 126 for 'z'
- 101 for 'A', 102 for 'B', 103 for 'C', ... , 126 for 'Z'
- 201 for F1, 202 for F2, 203 for F3, ... , 210 for F10
- 211 for SHIFT+F1, 212 for SHIFT+F2, ... , 220 for SHIFT+F10
- 221 for CTRL+F1, 222 for CTRL+F2, ... , 230 for CTRL+F10
- 231 for ALT+F1, 232 for ALT+F2, ... , 240 for ALT+F10
-
- The 'BEEP' option causes a sound to be heard.
-
- The 'TIMEOUT' option sets a DOS ERRORLEVEL of 254 if no
- key is pressed within the default or specified interval.
-
- The 'BEEP' and 'TIMEOUT' options may both be specified
- together.
-
- Use: The program Test1a9z can be used in a DOS batch (*.BAT) file
- as follows:
-
- :Test
- ECHO Press C to run program CCCCCCCC
- ECHO Press X to run program XXXXXXXX
- ECHO Press Q to QUIT
- Test1a9z
- IF NOT ERRORLEVEL 104 IF ERRORLEVEL 103 GOTO :PICK_C
- IF NOT ERRORLEVEL 125 IF ERRORLEVEL 124 GOTO :PICK_X
- IF NOT ERRORLEVEL 118 IF ERRORLEVEL 117 GOTO :QUIT
- ECHO Invalid choice, please choose again.
- GOTO :Test
- :PICK_C
- CCCCCCCC
- GOTO :QUIT
- :PICK_X
- XXXXXXXX
- :QUIT
-
- NO WARRANTY
- The program Test1a9z and any and all copies derived from it is licensed FREE
- OF CHARGE. Test1a9z and all derived copies are provided with absolutely NO
- WARRANTY. The author provides this program "AS IS" without warranty of
- any kind, either expressed or implied, including, but NOT limited to, any
- implied warranties of merchantability and/or fitness for any particular
- purpose. ALL RISK as to the quality and performance of the program is with
- the user. Thus, should this program prove defective, the user assumes any
- and all cost and consequences of any and all servicing, repair, or correction.
-
- DISCLAIMER
- IN NO EVENT WILL THE AUTHOR NOR ANY OTHER PARTY WHO PARTICIPATES IN THE
- DISTRIBUTION OF THIS PROGRAM AS PERMITTED BELOW, BE LIABLE FOR DAMAGES,
- INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL, OR
- CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THIS PROGRAM
- (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE
- OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
- WITH ANY OTHER PROGRAMS), EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY
- OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
-
- GENERAL PUBLIC LICENSE TO COPY
- 1. a) You may copy and distribute copies of this program in its executable
- form as you receive it, in any medium, provided that you do not in any way
- modify any such copy. You may charge a fair distribution fee for the physical
- act of transferring a copy and for the cost of the medium.
- b) You may at your option offer warranty protection in exchange for a fee.
- Such protection shall in no way be binding on the author of this program nor on
- any other party.
- 2. Mere aggregation of another unrelated program with this program on a
- volume of a storage or distribution medium does not bring the other program
- under the scope of these terms.
- 3. You may not copy, sublicense, distribute or transfer this program
- except as expressly provided under this License Agreement. Any attempt
- otherwise to copy, sublicense, distribute or transfer this program is void and
- your rights to use the program under this License agreement shall be
- automatically terminated. However, parties who have received computer
- software programs from you with this License Agreement will not have
- their licenses terminated so long as such parties remain in full compliance.
- 4. The user is welcome to use and/or share this program. The user is
- forbidden to forbid anyone else to use and/or share this program.
-
- AVAILABILITY OF SOURCE CODE
- As programs go, Test1a9z is somewhat trivial. However, should the user
- wish to acquire the source code for the most recent version, please send
- ten dollars ($10.00) Canadian for shipment to any address in Canada and ten
- dollars ($10.00) U.S. for shipment to any address in the continental United
- States of America. For shipment of source code to any address outside of
- Canada, the recipient is responsible for any duties and/or related costs of
- importation to her/his country. Source code is shipped with both a listing
- and in machine readable format on a diskette. Please specify one diskette
- format of 3½" (720K or 1.44MB) or 5¼" (360K or 1.2MB) and provide a legible
- address. Please include a postal money order for the above specified amounts.
- [Do NOT mail cash. C.O.D. orders NOT accepted.] Make your money order
- payable to Gerry Lowry. Mail your money order to:
- Gerry Lowry, P.O.Box 730, Postal Station "A", Toronto Ontario CANADA M5W 1G2
-
- The author has attempted to verify the execution of this software. However,
- the pernicious nature of Murphy's Law being what it is, the author would
- greatly appreciate being notified of any anomalies which the user might
- discover. The author also welcomes constructive criticism and suggestions
- for any enhancements. The author makes no promise to make any modifications
- NOR does the author make any commitment to reply to any correspondence. The
- above address may be used for all correspondence.
- {E.&.O.E.}
-